package com.etc.exec;

public class Master {
    public void play(Pet pet){
        if(pet instanceof Dog){
            ((Dog) pet).catchingFlyDisc();
        }else if(pet instanceof Penguin){
            ((Penguin) pet).swimming();
        }
    }
}
